/**
 * 通用接口定义
 */
import req from "/@/api/req";
import { UploadResult } from "/@/api/models";

export const Api = {
  upload: "api/files/upload",
};

// 文件上传接口
export function uploadReq(url: string, data: FormData) {
  return req.post<UploadResult>({ data, url }, { useGlobalLoading: false });
}
